home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / math / random < prev    next >
Encoding:
Text File  |  1992-12-17  |  636 b   |  13 lines

  1.  
  2.  
  3.           random limit | seed [seedval]
  4.                Generate a pseudorandom integer number greater than or
  5.                equal to zero and less than limit.  If seed is
  6.                specified, then the command resets the random number
  7.                generator to a starting point derived from the seedval.
  8.                This allows one to reproduce pseudorandom number
  9.                sequences for testing purposes.  If seedval is omitted,
  10.                then the seed is set to a value based on current system
  11.                state and the current time, providing a reasonably
  12.                interesting and ever-changing seed.
  13.